﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ManufacturerEdit.ascx.cs" Inherits="HUGATE.Item.Controls.Manufacturer.ManufacturerEdit" %>
<script type="text/javascript">
    function CheckHTML(element) {
        var text = document.getElementById(element).value;
        if (text.indexOf('<') > -1 || text.indexOf('>') > -1) {
            alert("Chuỗi nhập có thẻ HTML");
            document.getElementById(element).value = "";
        }

    }
</script>
<asp:UpdatePanel ID="udpEdit" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
            <tr id="trID" runat="server">
                <td style="height: 28px">
                    <%=HUGATE.Utility.ResxManager.GetString("ID") + HUGATE.Utility.ResxManager.GetString("ITEMManufacturer") + ":"%>
                </td>
                <td style="height: 28px">
                    <asp:TextBox ID="txtObjectID" runat="server" ReadOnly="True" Style="width: 100px"
                        ValidationGroup="checkDataInput" MaxLength="8"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 100px">
                    <%=HUGATE.Utility.ResxManager.GetString("Name") + HUGATE.Utility.ResxManager.GetString("ITEMManufacturer") + ":"%>
                </td>
                <td>
                    <asp:TextBox ID="txtObjectName" runat="server" MaxLength="200" ValidationGroup="checkDataInput"
                        Width="280px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtObjectName"
                        ErrorMessage="*" ValidationGroup="checkDataInput"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>
                    <%=HUGATE.Utility.ResxManager.GetString("Description")+":" %>
                </td>
                <td valign="top">
                    <asp:TextBox ID="txtDesc" runat="server" Height="100px"
                        TextMode="MultiLine" Width="280px" MaxLength="2000"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="height: 24px">
                </td>
                <td valign="top" style="height: 24px">
                    <asp:CheckBox ID="chkIsDefault" runat="server" Enabled= "false" /><%=HUGATE.Utility.ResxManager.GetString("Default") %></td>
            </tr>
            <tr>
                <td>
                </td>
                <td valign="top">
                    <asp:CheckBox ID="chkIsActived" runat="server" AutoPostBack="true" OnCheckedChanged="chkIsActived_CheckedChanged" /><%=HUGATE.Utility.ResxManager.GetString("Actived") %></td>
            </tr>
            <tr>
                <td style="height: 28px">
                </td>
                <td style="height: 28px">
                    <asp:Button ID="btnUpdate" runat="server" CssClass="Control_Button1" OnClick="btnUpdate_Click" ValidationGroup="checkDataInput" />
                    <asp:Button ID="btnCancel" runat="server" CssClass="Control_Button1" OnClick="btnCancel_Click" /></td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
